

class NeedLogin extends LpNetError {
  NeedLogin({int code: 400, String message: "需要登录", data})
      : super(code, message, data);
}

//网络异常统一格式类
class LpNetError implements Exception {
  final int code;
  final String? message;
  final dynamic data;

  LpNetError(this.code, this.message, this.data);
}
